<script setup>
import {useUserStore} from '../stores/user'
import {useCounterStore} from '../stores/counter'
import {storeToRefs} from 'pinia'
import childVue from './child.vue';

const store = useCounterStore()
const add = ()=>{
  store.count++
}

const useStore = useUserStore()
// const {age} = storeToRefs(useStore)
</script>

<template>
  {{store.count}}
  <button @click="add">新增</button>
  {{useStore.newName}}
  <!-- {{age}} -->
  <child-vue></child-vue>
</template>
